<!--左侧导航-->
<aside class="lyear-layout-sidebar">

  <!-- logo -->
  <div id="logo" class="sidebar-header">
    <a href="{:url('admin/index/index')}"><img src="{$Config['Logo'] ? $Config['Logo'] : 'static/admin/images/logo-sidebar.png'}" title="LightYear" alt="LightYear" /></a>
  </div>
  <div class="lyear-layout-sidebar-info lyear-scroll">

    <nav class="sidebar-main">
      <ul class="nav-drawer">
        <li class="nav-item {$menu['name'] == '后台首页' ? 'active' : ''}"> <a href="{:url('admin/index/index')}"><i
              class="mdi mdi-home"></i> <span>后台首页</span></a> </li>
        <li class="nav-item {$menu['name'] == '网站配置' ? 'active' : ''}">
          <a href="{:url('admin/config/index')}"><i class="mdi mdi-tools"></i> <span>网站配置</span></a>
        </li>
        <li class="nav-item nav-item-has-subnav {$menu['name'] == '管理员管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-tools"></i> <span>管理员管理</span></a>
          <ul class="nav nav-subnav">
            <li class="{$menu['title'] == '管理员列表' ? 'active' : ''}"> <a href="{:url('admin/admin/index')}">管理员列表</a>
            </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$menu['name'] == '用户管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-tools"></i> <span>用户管理</span></a>
          <ul class="nav nav-subnav">
            <li class="{$menu['title'] == '用户列表' ? 'active' : ''}"> <a href="{:url('admin/user/index')}">用户列表</a>
            </li>
            <li class="{$menu['title'] == '消费记录' ? 'active' : ''}"> <a href="{:url('admin/record/index')}">消费记录</a>
            </li>
            <li class="{$menu['title'] == '充值记录' ? 'active' : ''}"> <a href="{:url('admin/pay/index')}">充值记录</a>
            </li>
            <li class="{$menu['title'] == '用户回收站' ? 'active' : ''}"> <a href="{:url('admin/user/recycle')}">回收站</a>
            </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$menu['name'] == '问答管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-tools"></i> <span>问答管理</span></a>
          <ul class="nav nav-subnav">
            <li class="{$menu['title'] == '帖子列表' ? 'active' : ''}"> <a href="{:url('admin/post/index')}">帖子列表</a>
            </li>
            <li class="{$menu['title'] == '分类列表' ? 'active' : ''}"> <a href="{:url('admin/cate/index')}">分类列表</a>
            </li>
            <li class="{$menu['title'] == '回收站' ? 'active' : ''}"> <a href="{:url('admin/post/recycle')}">回收站</a>
            </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$menu['name'] == '商品管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-tools"></i> <span>商品管理</span></a>
          <ul class="nav nav-subnav">
            <li class="{$menu['title'] == '商品列表' ? 'active' : ''}"> <a href="{:url('admin/product/index')}">商品列表</a>
            </li>
            <li class="{$menu['title'] == '商品分类' ? 'active' : ''}"> <a href="{:url('admin/type/index')}">商品分类</a>
            </li>
            <li class="{$menu['title'] == '物流公司' ? 'active' : ''}"> <a href="{:url('admin/express/index')}">物流公司</a>
            </li>
            <li class="{$menu['title'] == '商品回收站' ? 'active' : ''}"> <a href="{:url('admin/product/recycle')}">回收站</a>
            </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$menu['name'] == '订单管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-tools"></i> <span>订单管理</span></a>
          <ul class="nav nav-subnav">
            <li class="{$menu['title'] == '订单列表' ? 'active' : ''}"> <a href="{:url('admin/order/index')}">订单列表</a>
            </li>
            <li class="{$menu['title'] == '订单回收站' ? 'active' : ''}"> <a href="{:url('admin/order/recycle')}">回收站</a>
            </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$menu['name'] == '预约管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-tools"></i> <span>预约管理</span></a>
          <ul class="nav nav-subnav">
            <li class="{$menu['title'] == '预约项目' ? 'active' : ''}"> <a href="{:url('admin/project/index')}">预约项目</a>
            </li>
            <li class="{$menu['title'] == '预约订单' ? 'active' : ''}"> <a href="{:url('admin/projectorder/index')}">预约订单</a>
            </li>
            <li class="{$menu['title'] == '预约订单回收站' ? 'active' : ''}"> <a href="{:url('admin/projectorder/recycle')}">回收站</a>
            </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$menu['name'] == '数据管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-tools"></i> <span>数据管理</span></a>
          <ul class="nav nav-subnav">
            <li class="{$menu['title'] == '用户统计' ? 'active' : ''}"> <a href="{:url('admin/analysis/user')}">用户统计</a> </li>
            <li class="{$menu['title'] == '问答统计' ? 'active' : ''}"> <a href="{:url('admin/analysis/post')}">问答统计</a> </li>
            <li class="{$menu['title'] == '消费统计' ? 'active' : ''}"> <a href="{:url('admin/analysis/record')}">消费统计</a> </li>
          </ul>
        </li>
      </ul>
    </nav>

    <div class="sidebar-footer">
      <p class="copyright"><a target="_blank"></a></p>
    </div>
  </div>

</aside>
<!--End 左侧导航-->